-
Notifications
You must be signed in to change notification settings - Fork 0
Automated key management system with "find, store, inject, forget" workflow #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: al7566 <215473224+al7566@users.noreply.github.com>
Co-authored-by: al7566 <215473224+al7566@users.noreply.github.com>
Co-authored-by: al7566 <215473224+al7566@users.noreply.github.com>
… URL Co-authored-by: al7566 <215473224+al7566@users.noreply.github.com>
Co-authored-by: al7566 <215473224+al7566@users.noreply.github.com>
Co-authored-by: al7566 <215473224+al7566@users.noreply.github.com>
|
@copilot { |
|
@copilot |
|
Fix |
4 similar comments
|
Fix |
|
Fix |
|
Fix |
|
Fix |
|
F8x |
Implements secure automated key management for API keys and secrets across applications. The system discovers required environment variables, stores them in GitHub Secrets, injects them into deployment configurations, and clears sensitive data from memory.
Core Components
key-manager.config.json): Defines 13 environment variables with validation patterns and injection targetsscripts/key-manager.ts): TypeScript implementation with GitHub Secrets API integration, extensible external source fetching, and secure memory clearing.github/workflows/key-manager.yml): Reusable workflow withworkflow_calltrigger for CI/CD integrationUsage
Command line:
GitHub Actions:
Key Features
KEYFINDER_SECRETfor authentication).envfile injection with template supportscan(full workflow),check(audit only),inject(deployment)Security
^postgresql://for DATABASE_URL)Configuration Example
{ "requiredKeys": [ { "name": "DATABASE_URL", "description": "PostgreSQL database connection string", "pattern": "^postgresql://", "required": true, "inject": [".env", "docker-compose"] } ], "externalSources": [ { "name": "keyfinder", "type": "api", "authSecret": "KEYFINDER_SECRET", "endpoint": "https://api.keyfinder.example/v1/keys" } ] }Documentation
Five documentation files provide complete reference:
KEY_MANAGEMENT_QUICKSTART.md- 5-minute setup guideKEY_MANAGEMENT.md- Complete system referenceKEY_MANAGEMENT_EXAMPLES.md- CI/CD integration patternsKEY_MANAGEMENT_INTEGRATION.md- Real-world workflow examplesKEY_MANAGEMENT_SUMMARY.md- Technical implementation detailsTesting
Unit tests validate configuration schema, pattern validation, and essential keys presence. Test infrastructure uses vitest.
Extensibility
The system supports:
STAGING_*,PROD_*)workflow_callOriginal prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.